package com.wsx.rpc.http.cloud;

import com.wsx.rpc.api.ApiRequest;
import com.wsx.rpc.api.ApiResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author wangshuaixin
 * @Title: com.wsx.rpc.http.cloud.CloudMesticService
 * @Description: TODO
 * @date 2018/10/30
 */
@FeignClient(name = "cloud-mestic", serviceId = "cloud-mestic")
public interface CloudMesticService {

    @RequestMapping(
            value = "/cloud/test/mestic",
            method = {RequestMethod.POST},
            consumes = {MediaType.APPLICATION_JSON_VALUE},
            produces = {MediaType.APPLICATION_JSON_VALUE}
    )
    ApiResponse cloud(@RequestBody ApiRequest apiRequest);
}
